package com.sxpi.zixun.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.pug.generator.anno.PugDoc;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 董伟豪
 * @Date: 2022/9/1 9:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("kss_category")
public class Category implements Serializable {

    @PugDoc(name="主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @PugDoc(name="标题")
    private String title;
    @PugDoc(name="描述")
    private String description;
    @PugDoc(name="创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @PugDoc(name="更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @PugDoc(name="发布状态")
    private Integer status;
    @PugDoc(name="排序")
    private Integer sorted;
    @PugDoc(name="删除状态")
    private Integer isdelete;
    @PugDoc(name="父id")
    private Long pid;
}
